package Interface.InterfaceDome002;

/**
 * ClassName:Rabbit
 * Package:Interface.InterfaceDome002
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/25-11:31
 * @Version:v1.0
 */
public class Rabbit extends Animal{
    public Rabbit() {
    }

    public Rabbit(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("兔子再吃胡萝卜");
    }
}
